{% extends '::base.html.twig' %} 
{% block module_name %}Iniciar Sesion{% endblock %}
{% block title %}Iniciar Sesion{% endblock %}
{% block body2 %}
<div class="col_5 centred">
    <div class="widget clearfix">
        <h2>Acceso</h2>
        <div class="widget_inside">
            {% if error %}
            <span class="notification undone">{{ error.message }}</span>
            {% endif %}
            <div class="form">
                <form action="{{ path('login_check') }}" method="post">
                    <div class="clearfix">
                        <label for="username" class="required">Usuario:</label>
                        <div class="input">
                            <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
                        </div>
                    </div>
                    <div class="clearfix">
                        <label for="password" class="required">Contrase&ntilde;a:</label>
                        <div class="input">
                            <input type="password" id="password" name="_password"  required="required"/>
                        </div>
                    </div>

                    <div class="clearfix grey-highlight">
                        <div class="input no-label">
                            <button type="submit" class="button blue">Acceder</button>
                            {#
                                If you want to control the URL the user is redirected to on success (more details below)
                                <input type="hidden" name="_target_path" value="/account" />
                            #}
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}